package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ZzxxChapterExamination;
import com.ruoyi.system.mapper.ZzxxChapterExaminationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IZzxxChapterExaminationService;

/**
 * 章节测试外键Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@Service
public class ZzxxChapterExaminationServiceImpl implements IZzxxChapterExaminationService 
{
    @Autowired
    private ZzxxChapterExaminationMapper zzxxChapterExaminationMapper;

    /**
     * 查询章节测试外键
     * 
     * @param chapterId 章节测试外键主键
     * @return 章节测试外键
     */
    @Override
    public ZzxxChapterExamination selectZzxxChapterExaminationByChapterId(Long chapterId)
    {
        return zzxxChapterExaminationMapper.selectZzxxChapterExaminationByChapterId(chapterId);
    }

    /**
     * 查询章节测试外键列表
     * 
     * @param zzxxChapterExamination 章节测试外键
     * @return 章节测试外键
     */
    @Override
    public List<ZzxxChapterExamination> selectZzxxChapterExaminationList(ZzxxChapterExamination zzxxChapterExamination)
    {
        return zzxxChapterExaminationMapper.selectZzxxChapterExaminationList(zzxxChapterExamination);
    }

    /**
     * 新增章节测试外键
     * 
     * @param zzxxChapterExamination 章节测试外键
     * @return 结果
     */
    @Override
    public int insertZzxxChapterExamination(ZzxxChapterExamination zzxxChapterExamination)
    {
        return zzxxChapterExaminationMapper.insertZzxxChapterExamination(zzxxChapterExamination);
    }

    /**
     * 修改章节测试外键
     * 
     * @param zzxxChapterExamination 章节测试外键
     * @return 结果
     */
    @Override
    public int updateZzxxChapterExamination(ZzxxChapterExamination zzxxChapterExamination)
    {
        return zzxxChapterExaminationMapper.updateZzxxChapterExamination(zzxxChapterExamination);
    }

    /**
     * 批量删除章节测试外键
     * 
     * @param chapterIds 需要删除的章节测试外键主键
     * @return 结果
     */
    @Override
    public int deleteZzxxChapterExaminationByChapterIds(Long[] chapterIds)
    {
        return zzxxChapterExaminationMapper.deleteZzxxChapterExaminationByChapterIds(chapterIds);
    }

    /**
     * 删除章节测试外键信息
     * 
     * @param chapterId 章节测试外键主键
     * @return 结果
     */
    @Override
    public int deleteZzxxChapterExaminationByChapterId(Long chapterId)
    {
        return zzxxChapterExaminationMapper.deleteZzxxChapterExaminationByChapterId(chapterId);
    }
}
